/*
 *  (C) Copyright 2007 Insula Tecnologia da Informacao Ltda.
 * 
 *  This file is part of Jazz.
 *
 *  Jazz is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Jazz is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with Jazz.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.openinsula.jazz.binding;

import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JTextField;

import org.openinsula.jazz.aop.ControllerBean;
import org.openinsula.jazz.stereotype.Binding;
import org.springframework.stereotype.Component;

@Component
public class ViewBean extends AbstractParentViewBean {

	@Binding(beanType = ControllerBean.class, property = "name")
	private JTextField nameField = new JTextField();

	@Binding(beanType = ControllerBean.class, property = "description")
	private JLabel nameLabel = new JLabel();

	@Binding(beanType = ControllerBean.class, property = "active")
	private JCheckBox activeCheckBox = new JCheckBox();

	private JTextField valueTextField = new JTextField();

	public JTextField getNameField() {
		return nameField;
	}

	public void setNameField(JTextField nameField) {
		this.nameField = nameField;
	}

	public JLabel getNameLabel() {
		return nameLabel;
	}

	public void setNameLabel(JLabel nameLabel) {
		this.nameLabel = nameLabel;
	}

	public JCheckBox getActiveCheckBox() {
		return activeCheckBox;
	}

	public void setActiveCheckBox(JCheckBox activeCheckBox) {
		this.activeCheckBox = activeCheckBox;
	}

	public JTextField getValueTextField() {
		return valueTextField;
	}

	public void setValueTextField(JTextField valueTextField) {
		this.valueTextField = valueTextField;
	}

}
